package com.kfm.base.t;


import java.io.Serializable;

public class Person implements Cloneable, Serializable {

    private String name;

    private Integer age;

    private Character gender;

    private GirlFriend girlFriend;

    public Person(String name, Integer age, Character gender, GirlFriend girlFriend) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.girlFriend = girlFriend;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                ", girlFriend=" + girlFriend +
                '}';
    }
}

class GirlFriend implements Serializable{

    private String name;

    private Integer age;

    private Object car;

    public GirlFriend(String name, Integer age, Object car) {
        this.name = name;
        this.age = age;
        this.car = car;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "GirlFriend{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", car=" + car +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Object getCar() {
        return car;
    }

    public void setCar(Object car) {
        this.car = car;
    }
}
